package omg.ligong.dao;

import java.util.List;

import omg.ligong.domain.CourseClass;

public interface CourseClassDAO {
	/**
	 * 添加课程类型
	 * 
	 * @param courseClass
	 * @throws Exception
	 */
	void addCourseClass(CourseClass courseClass) throws Exception;

	/**
	 * 删除课程类型
	 * 
	 * @param className
	 * @throws Exception
	 */
	void delCourseClass(String className) throws Exception;

	/**
	 * 列出课程类型
	 * 
	 * @param offset
	 * @param count
	 * @return
	 * @throws Exception
	 */
	List listCourseClass(int offset, int count) throws Exception;

	/**
	 * 修改课程类型名
	 * 
	 * @param srcName
	 * @param destName
	 * @throws Exception
	 */
	void modifyCourseClass(String srcName, String destName) throws Exception;

	/**
	 * 根据类型名查找
	 * 
	 * @param className
	 * @return
	 * @throws Exception
	 */
	CourseClass findCourseClassByName(String className) throws Exception;
	/**
	 * 课程类型的总数
	 * @return
	 * @throws Exception
	 */
	int countCourseClass() throws Exception;

}
